import { IFeidaoAiBrowserPage } from '@feidao/web/interfaces';
import { anim, play } from '@feidao/animation';

export default async function (fd: IFeidaoAiBrowserPage, ...args: any[]) {
	document.body.addEventListener('click', (e: Event) => {
		const _target: Node = e.target as Node;
		const aim_node = document.getElementById('zj-personnel-file-006');
		if (!aim_node.contains(_target) && getComputedStyle(aim_node).right == '0px') {
			play(anim(aim_node, {
			}, {
					right: {
						start: 0,
						end: -1100
					}
				}));
		}
	});
}